/*
 * @Author: shiguo
 * @Date: 2022-07-14 18:09:02
 * @LastEditors: shiguo
 * @LastEditTime: 2023-01-03 17:30:04
 * @FilePath: /@aks-dev/easyui/lib/MenuView/index.ts
 */

import React from "react";
import { ImageSourcePropType, StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';



export type MenuItem = {
    text: string;
    icon?: ImageSourcePropType;
    extra?: any
}

export type MenuProps = {
    defaultAlignVertical?: 'bottom' | 'top';
    defaultAlignHorizontal?: 'left' | 'right';
    style?: StyleProp<ViewStyle> | undefined;
    data?: MenuItem[];
    onItemClick?: (index: number, extra?: any) => void;
    onContainerClick?:Function;
    activeOpacity?:number;
} & Readonly<{ children?: React.ReactNode | undefined }> & TouchableOpacityProps


export declare const MenuView: React.FC<MenuProps>;